<template>
  <div class="sucessBox">
    <div class="count">
      <div class="txt">支付成功</div>
      <div class="img-sucess">
        <img src="@/assets/image/paysucess.png" alt="">
      </div>
      <div class="btn-box">
        <div class="btn" @click="goHomePage">
          返回首页
        </div>
        <div class="btn" @click="goOrderPage">
          查看订单
        </div>
      </div>
    </div>

  </div>
</template>
<script>
export default {
  name: 'PaySuccess',
  data() {
    return {}
  },
  mounted() {},
  created() {},
  methods: {
    goHomePage() {
      this.$router.push('/homePage')
    },
    goOrderPage() {
      this.$router.push('/orderPage/orderList')
    }

  }

}
</script>
<style scoped lang="scss">
.sucessBox{
  width: 1200px;

  margin:  0 auto;
  .count{
    margin: 200px 0 0 0;
    .img-sucess{
      text-align: center;
  }
  .txt{
    text-align: center;
    font-size: 24px;
  }
  .btn-box{
    display: flex;
    justify-content: center;
    cursor: pointer;
    .btn{
      background: #e54346;
    color: #fff;
    padding: 8px 20px;
    border: none;
    font-size: 16px;
    margin: 0 15px;
    }
  }
  }

}
</style>
